local config = {}

function config.nvim_lsp()
	require("fzf_lsp").setup()
	require("modules.completion.lspconfig")
end



function config.completion()
  -- require("modules.completion.lsp_sign");

	if vim.g.use_nvim_comp==1 then
    require("modules.completion.nvim_comp");
	end



	if 1==vim.g.use_coq_nvim then
    require("modules.completion.coq_nvim")
	end
end




function config.vim_vsnip()
	vim.g.vsnip_snippet_dir = "~/.config/nvim/snippets"
end

-- function config.telescope()
-- 	if not packer_plugins["plenary.nvim"].loaded then
-- 		vim.cmd([[packadd plenary.nvim]])
-- 		vim.cmd([[packadd popup.nvim]])
-- 		vim.cmd([[packadd telescope-fzy-native.nvim]])
-- 	end
-- 	require("telescope").setup({
-- 		defaults = {
-- 			prompt_prefix = "🔭 ",
-- 			prompt_position = "top",
-- 			selection_caret = " ",
-- 			sorting_strategy = "ascending",
-- 			results_width = 0.6,
-- 			file_previewer = require("telescope.previewers").vim_buffer_cat.new,
-- 			grep_previewer = require("telescope.previewers").vim_buffer_vimgrep.new,
-- 			qflist_previewer = require("telescope.previewers").vim_buffer_qflist.new,
-- 		},
-- 		extensions = {
-- 			fzy_native = {
-- 				override_generic_sorter = false,
-- 				override_file_sorter = true,
-- 			},
-- 		},
-- 	})
-- 	require("telescope").load_extension("fzy_native")
-- 	require("telescope").load_extension("dotfiles")
-- 	require("telescope").load_extension("gosource")
-- end



return config
